/**
 * Created by bogewang on 2017/8/21.
 */
actionApp.directive('datePicker',function () {  //定义一个指令名为datePicker
    return {
        restrict :'AC',     //2 限制为属性指令和样式指令;
        link:function (scope, elem, attrs) {    //3 使用link方法来定义指令
            elem.datePicker();      //4 初始化 jqueryUI 的datePicker
        }
    }
});